package org.jeecg.modules.parameter.api.entity.power;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;


/**
 * @author P
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sim_power", schema = "simulator")
@ApiModel(value = "sim_power", description = "参数-线路-供电区间")
public class SimPower implements Serializable {
    @ApiModelProperty(value = "id（uuid），唯一标识")
    @TableId(type = IdType.ASSIGN_UUID, value = "id")
    private String id;

    @ApiModelProperty(value = "供电区间id")
    @TableField(value = "power_id")
    private String powerId;

    @ApiModelProperty(value = "供电区间名称")
    @TableField(value = "power_name")
    private String powerName;

    @ApiModelProperty(value = "所属线路id(uuid)")
    @TableField(value = "main_line_id")
    private String mainLineId;

    @ApiModelProperty(value = "是否含站（01包含，02不包含）")
    @TableField(value = "power_type")
    private String powerType; // 使用String来存储ENUM值

    @ApiModelProperty(value = "开始坐标")
    @TableField(value = "start_offset")
    private String startOffset;

    @ApiModelProperty(value = "结束坐标")
    @TableField(value = "end_offset")
    private String endOffset;

    @ApiModelProperty(value = "上下行 01上行 02下行")
    @TableField(value = "up_or_down")
    private String upOrDown;

    @ApiModelProperty(value = "运营状态，运营01(默认) ，停运02")
    @TableField(value = "operating_status")
    private String operatingStatus;
//
//    @ApiModelProperty(value = "供电区间包含车站集合")
//    private List<SimPowerWithStation> powerWithStation;
}